<?php 

namespace app\common\validate\dormitory;

use think\Validate;

class Dormitory extends Validate 
{ 
    protected $rule = [
        'dormitory_name' => 'require',
    ];

    protected $message = [
        'dormitory_name.require' => '请输入名称',
    ];

    protected $scene = [
        'edit' => ['dormitory_name','admin_name','id'],
        'add' => ['dormitory_name','admin_name'],
    ];

} 
